package lec06.pm;

import java.io.File;

public class FileDemo {

	public static void main(String[] args) {
		String path="D:\\zjText";
		File f=new File(path);
		System.out.println(f.exists());
		String fs[]=f.list();
		for(File rt:File.listRoots())
			System.out.println(rt.getAbsolutePath());;
		for(String ff:fs)
			System.out.println(f.getAbsolutePath()+"\\"+ff);
	}
}
